package ArrayTest.Homework.ArmyTest;

public class TransportPlane extends Weapon implements Move{
    public TransportPlane(){

    }
    public TransportPlane(String name, String type){
        this.name = name;
        this.type = type;
    }
    public void move(){
        System.out.println(this.name+"飞行了80里，支援前线部队");
    }

    @Override
    public String toString() {
        return "TransportPlane{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
